package com.wac.data.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author beta
 * @since 2023-03-16
 */
@Getter
@Setter
@TableName("message")
public class Message implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableField("send_id")
	private String sendId;

	@TableField("receive_id")
	private String receiveId;

	@TableField("`type`")
	private String type;

	@TableField("content")
	private String content;

	@TableField("`time`")
	private LocalDateTime time;

	@TableField("state")
	private Integer state;

	@TableField("source")
	private String source;

	//各项信息
	@TableField(exist = false)
	private User sender;

	@TableField(exist = false)
	private User receiver;

}
